<div class="ClientsSucursales form">
<?php echo $this->Form->create('ClientsSucursales');?>
	<fieldset>
	<?php echo $this->Form->input('name',array( 'label' => __('Nombre',true) ));?>
	<?php echo $this->Form->input('direccion',array( 'label' => __('Dirección',true) ));?>
	<?php echo $this->Form->input('localidad',array( 'label' => __('Localidad',true) ));?>
	<?php echo $this->Form->input('provincia',array( 'label' => __('Provincia',true), 'id'=>'provincia' ));?>
	<?php echo $this->Form->input('country_id',array( 'label' => __('País',true) ));?>
	<?php echo $this->Form->input('telefono',array( 'label' => __('Teléfono',true) ));?>
	<?php echo $this->Form->input('email',array( 'label' => __('Email',true) ));?>
	</fieldset>
	<?php echo $this->Form->end(__('Cargar', true));?>
</div>

<script>
	jQuery(function() {

	    jQuery("#provincia").autocomplete("/ajax/obtiene_provincias_clientes/", {
	        width: 260,
	        selectFirst: true
	    });

	    jQuery("#localidad").autocomplete("/ajax/obtiene_localidad_clientes/", {
	        width: 260,
	        selectFirst: true
	    });



	});
</script>